Copies the specified region from memory into the current bitmap.
'Declaration
Public Overloads Sub CopyFromMemory( _
ByVal () As System.Byte, _
ByVal As System.Integer _
)
public void CopyFromMemory(
System.byte[] ,
System.int
)
Parameters
- memory
- The data to copy.
- pitch
- The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding.
Return Value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.